<?php
/**
 * Created by PhpStorm.
 * User: dengpan
 * Date: 2016/12/7
 * Time: 02:18
 */

namespace Services\Hello;

class Handler implements myServiceIf
{
    public function getStudents(\Services\Hello\Req $req)
    {
        var_dump($req);

        $ret = [];
        $ret[] = new \Services\Hello\student(
            [
                'name' => "王祖贤",
                'age' => 18,
            ]
        );

        $ret[] = new \Services\Hello\student(
            [
                'name' => "漩涡长门",
                'age' => 40,
            ]
        );

        var_dump($ret);
        return $ret;
    }
}